package com.ruima.framework.rest;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

@Path("SystemDojoTree")
public class SystemDojoTreeService {
	
	private static String SYSTEM_DOJO_TREE_JSON;
	
//	private static SystemDojoTreeModel getDojoTreeModel(){
//		List<Children> childrens = new ArrayList<Children>();
//		Children children = new Children("2");
//		childrens.add(children);
//		SystemDojoTreeModel systemDojoTreeModel = new SystemDojoTreeModel("1","User Manage","continent",childrens);
//		return systemDojoTreeModel;
//	}
//	static {
//		AbstractSystemDojoModel abstractSystemDojoModel = new AbstractSystemDojoModel();
//		abstractSystemDojoModel.setIdentifier("id");
//		abstractSystemDojoModel.setLabel("name");
//		
//		List<SystemDojoTreeModel> items = new ArrayList<SystemDojoTreeModel>();
//		{
//			items.add(getDojoTreeModel());
//		}
//		abstractSystemDojoModel.setItems(items);
//		
//		
//	}
	
	@GET
	@Produces(MediaType.TEXT_HTML)
	@Path("gettreelinklist")
	/**
	 * 
	 *  "{\"result\":0}";
	 */
	public String getTreeLinkList(@QueryParam("domain")String domain){
		System.out.println("domain:"+domain);
		
		
		return "xx";
	}
}
